package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    public List<String> findAllHealThmanagerName();
    public Member findByIds(Integer ids);
    public List<String> findAddressByMemberId(Integer id);
    public List<String> findSetmealByMemberId(Integer id);
    public List<String> findCheckgroupByMemberId(Integer id);
    public List<String> findCheckitemByMemberId(Integer id);

    public Integer findMemCountBetweenDate(String date,String date2);
    public Integer findMemCountBeforeDate(String date);
    public Integer findMemCountAfterDate(String date);


    String findTelephoneById(Integer id);

    void editTelephone(@Param("newTelephone") String newTelephone, @Param("id") String id);

    void editBaseInfo(Member member);

    Member findMemberByCondition(String queryString);
    Integer findCountByMemberId(Integer id);

}
